ofEnum

inline fun <T : Enum<T>> ofEnum(set: Set<T>): ValidatedSet<T>

creates a Validated Enum Set

Allows any value in the Enum, repeating elements allowed

Return

ValidatedSet from the set provided

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

, the Enum type

set

input Set


inline fun <T : Enum<T>> ofEnum(vararg e: T): ValidatedSet<T>

creates a Validated Enum Set

Allows any value in the Enum, repeating elements allowed

Return

ValidatedSet from the set provided

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

, the Enum type

e

vararg Enum inputs to construct the set